package com.zbkj.crmeb.chant.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SavePickingRequest implements Serializable {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "批采单名称")
    @NotBlank(message = "批采单名称不能为空")
    private String name;

    @ApiModelProperty(value = "结单时间")
    @NotNull(message = "结单时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date statementTime;

    @ApiModelProperty(value = "收货方式：1.大陆批采 2.港澳批采")
    @NotNull(message = "收货方式不能为空")
    private Integer receiptType;

    @ApiModelProperty(value = "起订方式：1：金额 2： 件数")
    private Integer minimumType;

    @ApiModelProperty(value = "起订金额")
    @NotNull(message = "起订金额不能为空")
    private BigDecimal minimumPrice;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "是否启用")
    private Integer status;

    @ApiModelProperty(value = "商户id",hidden = true)
    private Integer merId;

}